<div class="modal-content">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()" aria-label="Close">
      <em class="ion-ios-close-empty sn-link-close"></em>
    </button>
    <h4 class="modal-title" id="modal-title">插入表格</h4>
  </div>
  <div class="modal-body" id="modal-body">
    <div class="row">
      <div class="col-sm-12">
        <form class="form-horizontal" name="editStaffForm" angular-validator angular-validator-submit="ok(newtable)" novalidate >
          <div class="form-group">
            <label for="numberOfRows" class="col-sm-3 control-label">行数:</label>
            <div class="col-sm-9">
              <input type="number" min="1" class="form-control" ng-model="newtable.row"  placeholder="行数" name="row"
                     required-message="'*请填写行数'"
                     required id="numberOfRows" />
            </div>
          </div>
          <div class="form-group">
            <label for="NumberOfColumns" class="col-sm-3 control-label">列数:</label>
            <div class="col-sm-9">
              <input type="number" min="1" class="form-control" ng-model="newtable.col" placeholder="列数" name="col"
                     required-message="'*请填写列数'" ng-change="setCol(newtable.col)"
                     required="" id="NumberOfColumns" />
            </div>
          </div>
          <div class="form-group" ng-repeat="col in colSet" ng-if="colSet.length > 1">
            <label class="col-sm-3 control-label">第{{col.id}}列列宽比例(%):</label>
            <div class="col-sm-9">
              <input type="number" min="1" class="form-control" ng-model="col.width" placeholder="列宽比例(%)" name="colSet"
                     required-message="'*请填写列宽'"
                     required="" />
            </div>
          </div>
          <div class="form-group" style="margin-top: 40px">
            <div class="col-sm-12 text-center">
              <button type="submit" class="btn btn-primary">插&nbsp;&nbsp;&nbsp;&nbsp;入</button>
              <button type="button" class="btn btn-warning" style="margin-left: 20px" ng-click="cancel()">返&nbsp;&nbsp;&nbsp;&nbsp;回</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    &nbsp;
  </div>
</div>
